<template>
  <h1>1.组件基本写法</h1>
  <h2>count:{{count}}---a:{{a}}</h2>
  <button @click="changeCount">修改count的值</button>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
    name:"About",
})
</script>
<script lang="ts" setup>
  let count = 0
  let a = 'hello'
  const changeCount = () => {
    console.log('触发了');
  }
</script>
<style scoped>
</style>